import request from '@/utils/request'

// 查询权限列表
export function listAuthor(query) {
  return request({
    url: '/biz/author/list',
    method: 'get',
    params: query
  })
}

// 查询权限详细
export function getAuthor(authorid) {
  return request({
    url: '/biz/author/' + authorid,
    method: 'get'
  })
}

// 新增权限
export function addAuthor(data) {
  return request({
    url: '/biz/author',
    method: 'post',
    data: data
  })
}

// 修改权限
export function updateAuthor(data) {
  return request({
    url: '/biz/author',
    method: 'put',
    data: data
  })
}

// 删除权限
export function delAuthor(authorid) {
  return request({
    url: '/biz/author/' + authorid,
    method: 'delete'
  })
}

// 导出权限
export function exportAuthor(query) {
  return request({
    url: '/biz/author/export',
    method: 'get',
    params: query
  })
}